import request from "@/utils/request";
// 通知-修改已读状态
export function changeReadStatus(id) {
  return request({
    url: "/system/notice/changeReadStatus/" + id,
    method: "post",
  });
}
// 通知-我的通知
export function myNotice(status) {
  return request({
    url: "/system/notice/myNotice/1/" + status,
    method: "get",
  });
}
// 获取下一份开始id
export function getNextExamPaper(id) {
  return request({
    url: "/exam/tea/getNextExamPaper/" + id,
    method: "get",
  });
}
// 获取补考申请的详细信息
export function getExamApplyInfoById(examApplyId) {
  return request({
    url: `/teacher/examApply/getExamApplyInfoById/${examApplyId}`,
    method: "get",
  });
}
// 消息补考申请通过
export function putExamApply(data) {
  return request({
    url: "/teacher/examApply",
    method: "put",
    data: data,
  });
}
// 修改消息
export function getPut_message(data) {
  return request({
    url: "/system/message",
    method: "put",
    data: data,
  });
}
// 消息详细
export function getPost_message(postId) {
  return request({
    url: "/teacher/message/" + postId,
    method: "get",
  });
}
// 消息列表
export function listPost_message(data) {
  return request({
    url: "/system/message/myMessageList",
    method: "get",
    params: data,
  });
}
// 消息已读
export function updatePost_readmessage(postId) {
  return request({
    url: "/teacher/message/read/" + postId,
    method: "put",
  });
}
// 教师评价学生详情
export function teaEvaluateInfo(courseStuId) {
  return request({
    url: "/teacher/homePageCourse/teaEvaluateInfo/" + courseStuId,
    method: "get",
  });
}
// 修改学生评价
export function updateEvaluate(data) {
  return request({
    url: "/teacher/homePageCourse/updateEvaluate",
    method: "put",
    data: data,
  });
}
